/**
 * <pre>
 * Copyright 2009 openmaximo.net
 * 
 * Licensed under the Apache License, Version 2.0 (the &quot;License&quot;);
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at 
 * 
 *   http://www.apache.org/licenses/LICENSE-2.0
 * 
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an &quot;AS IS&quot; BASIS, 
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 
 * See the License for the specific language governing permissions and 
 * limitations under the License.
 * </pre>
 */
package net.openmaximo.maven.plugins;

import java.io.File;
import java.util.List;

/**
 * <p>
 * Maven Plugin that generates Maximo classes.
 * </p>
 * <p>
 * Available objects:
 * <ul>
 * <li>MBO classes {@link net.openmaximo.maven.plugins.MBO}</li>
 * </ul>
 * </p>
 * <p>
 * Comming soon:
 * <ul>
 * <li>FLD custom classes</li>
 * <li>Dialog Beans</li>
 * <li>Application Beans</li>
 * <li>Crontask</li>
 * <li>Escalation</li>
 * </ul>
 * </p>
 * 
 * @author openmaximo.net
 */
public abstract class Maximo extends org.apache.maven.plugin.AbstractMojo {
  /**
   * 
   */
  // private static final Logger lLogger = Log4jLogger.getLogger(Maximo.class);
  /**
   * @parameter default-value="UTF8"
   */
  protected String charEncoding;
  /**
   * @parameter default-value="target/generated-sources/maven-maximodev"
   */
  protected File outputDirectory;
  /**
   * @parameter
   */
  protected List resources;
  /**
   * @parameter
   */
  protected boolean overwrite;
  /**
   * <p>
   * Methods to create or override (CSV).
   * </p>
   * 
   * @parameter expression="${override.methods}"
   */
  private String overrideMethods;

  // ------------------------ GETTERS N SETTERS --------------------------
  /**
   * @return the charEncoding
   */
  public String getCharEncoding() {
    return charEncoding;
  }

  /**
   * @param charEncoding
   *          the charEncoding to set
   */
  public void setCharEncoding(String charEncoding) {
    this.charEncoding = charEncoding;
  }

  /**
   * @return the outputDirectory
   */
  public File getOutputDirectory() {
    return outputDirectory;
  }

  /**
   * @param outputDirectory
   *          the outputDirectory to set
   */
  public void setOutputDirectory(File outputDirectory) {
    this.outputDirectory = outputDirectory;
  }

  /**
   * @return the resources
   */
  public List getResources() {
    return resources;
  }

  /**
   * @param resources
   *          the resources to set
   */
  public void setResources(List resources) {
    this.resources = resources;
  }

  /**
   * @return the overwrite
   */
  public boolean isOverwrite() {
    return overwrite;
  }

  /**
   * @param overwrite
   *          the overwrite to set
   */
  public void setOverwrite(boolean overwrite) {
    this.overwrite = overwrite;
  }

  /**
   * @param overrideMethods
   *          the overrideMethods to set
   */
  public void setOverrideMethods(String overrideMethods) {
    this.overrideMethods = overrideMethods;
  }

  /**
   * @return the overrideMethods
   */
  public String getOverrideMethods() {
    return overrideMethods;
  }
  // ------------------------ /GETTERS N SETTERS -------------------------
}
